<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('comment/commentadmin/question_comment_list', array('post_id' => $post_id))}">评论列表</a></li>
        <li><a href="{:U('Question/AdminQuestion/question_answer_list', array('post_id' => $post_id))}">回答列表</a></li>
        <li class="active"><a>邀请专栏作者</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('AdminQuestion/invite_professor', array('post_id' => $post_id))}">
        <input type="text" name="name" style="width: 150px;" value="{$name|default=''}" placeholder="请输入名称">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:U('AdminQuestion/invite_professor')}">清空</a>
    </form>

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th width="100">名称</th>
                <th width="150">职位</th>
                <th width="150">公司</th>
                <th width="100">状态</th>
                <th width="100">回答</th>
                <th width="70">操作</th>
            </tr>
            </thead>
            <foreach name="pf_list" item="vo">
                <tr>
                    <td>
                        <b>{$vo.id}</b>
                    </td>

                    <td>
                        {$vo.user_nicename|default=$vo['user_login']}
                    </td>

                    <td>{$vo.position}</td>

                    <td>{$vo.company}</td>

                    <td>
                        <notempty name="vo.id1">
                            <span style="color: orangered">已邀请 | {$vo.user_nicename}</span>
                        <else/>
                            <span>未邀请</span>
                        </notempty>
                    </td>

                    <td>
                        <notempty name="vo.has_answer">
                            <span style="color: orangered">已作答</span>
                        <else/>
                            <span>未作答</span>
                        </notempty>
                    </td>


                    <td>
                        <notempty name="vo.id1">
                            <a href="{:U('AdminQuestion/doInvite', array('qi_id' => $vo['id1']))}" class="js-ajax-delete">取消</a>
                        <else/>
                            <a href="{:U('AdminQuestion/doInvite', array('post_id' => $post_id, 'to_id' => $vo['user_id'], 'type' => 'add'))}">邀请</a>
                        </notempty>
                    </td>
                </tr>
            </foreach>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>